package collector;

import collector.httpd.MetaServer;

import net.apexcns.core.util.ConfigUtil;

//import org.apache.log4j.Logger;

public class Metad {
	//private Logger logger = Logger.getLogger(getClass());

	public static void main(String[] args) {
		System.setProperty("collector.mode", "meta");
		
		String collectorHome = System.getProperty("collector.home");
		if ( collectorHome == null ) collectorHome = ConfigUtil.getAppHome();
		
		System.setProperty("collector.configBase", collectorHome+"/conf");
		//SysmonUtil.initLogger();

		MetaServer metaServer = new MetaServer();

		try {
			metaServer.start();
			//metaServer.join();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}